package com.efast.dmom.mes.entity;

import java.time.LocalDate;
import java.time.LocalDateTime;

import com.efast.dmom.mes.entity.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;

/**
 * @author Aaron Liu
 *
 * @date:2020年2月6日
 */
public class PlanOrderEntity extends BaseEntity {

	private static final long serialVersionUID = -852288603150967665L;

	public PlanOrderEntity() {
		// TODO Auto-generated constructor stub
	}

	private String partNo = null;
	private String partRevision;
	private String partDesc = null;
	private String sequeuce = null;
	private String orderNumber = null;

	private int priority = 0;
	private long plantId = 0;
	private int orderStatus = 0;

	private int quantity = 0;

	@JsonDeserialize(using = LocalDateDeserializer.class)
	@JsonSerialize(using = LocalDateSerializer.class)
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
	private LocalDate planOfflineDate = null;

	@JsonDeserialize(using = LocalDateTimeDeserializer.class)
	@JsonSerialize(using = LocalDateTimeSerializer.class)
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime scheudledOnlineDate = null;

	@JsonDeserialize(using = LocalDateTimeDeserializer.class)
	@JsonSerialize(using = LocalDateTimeSerializer.class)
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime scheudledOfflineDate = null;

	private long prodLineId = 0;

	private long shopId = 0;

	private String ea0;
	private String ea1;
	private String ea2;
	private String ea3;
	private String ea4;

	public String getPartNo() {
		return partNo;
	}

	public long getPlantId() {
		return plantId;
	}

	public String getSequeuce() {
		return sequeuce;
	}

	public void setSequeuce(String sequeuce) {
		this.sequeuce = sequeuce;
	}

	public void setPlantId(long plantId) {
		this.plantId = plantId;
	}

	public void setPartNo(String partNo) {
		this.partNo = partNo;
	}

	public String getPartRevision() {
		return partRevision;
	}

	public void setPartRevision(String partRevision) {
		this.partRevision = partRevision;
	}

	public String getPartDesc() {
		return partDesc;
	}

	public void setPartDesc(String partDesc) {
		this.partDesc = partDesc;
	}

	public long getShopId() {
		return shopId;
	}

	public void setShopId(long shopId) {
		this.shopId = shopId;
	}

	public LocalDate getPlanOfflineDate() {
		return planOfflineDate;
	}

	public void setPlanOfflineDate(LocalDate planOfflineDate) {
		this.planOfflineDate = planOfflineDate;
	}

	public LocalDateTime getScheudledOnlineDate() {
		return scheudledOnlineDate;
	}

	public void setScheudledOnlineDate(LocalDateTime scheudledOnlineDate) {
		this.scheudledOnlineDate = scheudledOnlineDate;
	}

	public LocalDateTime getScheudledOfflineDate() {
		return scheudledOfflineDate;
	}

	public void setScheudledOfflineDate(LocalDateTime scheudledOfflineDate) {
		this.scheudledOfflineDate = scheudledOfflineDate;
	}

	public long getProdLineId() {
		return prodLineId;
	}

	public void setProdLineId(long prodLineId) {
		this.prodLineId = prodLineId;
	}

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	public String getOrderNumber() {
		return orderNumber;
	}

	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}

	public int getPriority() {
		return priority;
	}

	public void setPriority(int priority) {
		this.priority = priority;
	}

	public int getOrderStatus() {
		return orderStatus;
	}

	public void setOrderStatus(int orderStatus) {
		this.orderStatus = orderStatus;
	}

	public String getEa0() {
		return ea0;
	}

	public void setEa0(String ea0) {
		this.ea0 = ea0;
	}

	public String getEa1() {
		return ea1;
	}

	public void setEa1(String ea1) {
		this.ea1 = ea1;
	}

	public String getEa2() {
		return ea2;
	}

	public void setEa2(String ea2) {
		this.ea2 = ea2;
	}

	public String getEa3() {
		return ea3;
	}

	public void setEa3(String ea3) {
		this.ea3 = ea3;
	}

	public String getEa4() {
		return ea4;
	}

	public void setEa4(String ea4) {
		this.ea4 = ea4;
	}

	@Override
	public long getId() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void setId(long id) {
		// TODO Auto-generated method stub

	}

}
